package com.atguigu08._interface.ex3;

public class Car extends Vehicle implements IPower{
    private String carnumber;

    public Car(String band, String color, String carnumber) {
        super(band, color);
        this.carnumber = carnumber;
    }

    public String getCarnumber() {
        return carnumber;
    }

    public void setCarnumber(String carnumber) {
        this.carnumber = carnumber;
    }

    @Override
    public void power() {
        System.out.println("oral");
    }

    @Override
    public void run() {
        System.out.println("汽车走");
    }
}
